package com.jecy.oauth.service;

import java.util.Map;

/**
 * Created by huijun on 15-9-22.
 */
public class CustomerContextHolder {
    private static final ThreadLocal<Map> contextHolder = new ThreadLocal<Map>();

    public static void setContextType(Map<String, String> contextType) {
        contextHolder.set(contextType);
    }

    public static Map<String, String> getContextType() {
        return contextHolder.get();
    }

    public static void clearContextType() {
        contextHolder.remove();
    }
}
